<template>
	<view class="item">
		<image src="/static/logo.png" mode="widthFix"></image>
		<view class="substance">
			<view class="name">峰爆</view>
			<view class="text">电影评分 <i>9.2</i>
				<view class="line"></view> 2.0万人想看
			</view>
			<view class="text">导演：曹保平</view>
			<view class="text">主演:黄渤,周迅,祖峰,张宥浩,黄渤,周迅,祖峰,张宥浩</view>
			<view class="text">上映日期：2023-09-22</view>
		</view>
		<view class="btn">
			<view>购票</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "filmList",
		data() {
			return {

			};
		},
		props:{
			item:{
				type:'object'
			}
		},
		created() {
			// console.log(this.item);
		}
	}
</script>

<style lang="scss">
	.item {
		margin-bottom: 30rpx;
		background: #FFFFFF;
		border-radius: 20rpx;
		padding: 30rpx 30rpx 30rpx 31rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;

		image {
			width: 160rpx;
			height: 214rpx;
		}

		.btn {
			padding-top: 42rpx;
			box-sizing: border-box;
			height: 214rpx;

			view {
				width: 90rpx;
				height: 44rpx;
				background: linear-gradient(90deg, #EF5233 0%, #FFB554 100%);
				border-radius: 22rpx;
				font-size: 22rpx;
				line-height: 44rpx;
				text-align: center;
				color: #FFF;
			}
		}

		.substance {
			max-width: 50%;

			.name {
				font-size: 30rpx;
				color: #0F0807;
				line-height: 42rpx;
				font-weight: 600;
			}

			.text {
				width: 100%;
				font-size: 22rpx;
				color: #888889;
				line-height: 30rpx;
				margin-top: 12rpx;
				display: flex;
				white-space: nowrap;
				overflow: hidden;
				text-overflow: ellipsis;

				i {
					font-size: 24rpx;
					font-weight: 600;
					color: #EF5233;
					line-height: 33rpx;
					margin: 0 10rpx;
					font-style: normal;
				}

				.line {
					width: 1rpx;
					height: 23rpx;
					background: rgba(151, 151, 151, 0.4);
					margin-right: 10rpx;
				}
			}
		}
	}
</style>